<layout name='Layout/layout_page' />

	
	<ol class="breadcrumb">
		<li><a href="<{:U('Contact/index')}>">联络人管理</a></li>
      	<li class="active">编辑</li>
    </ol>

	<form id="ajaxForm" action="<{:U('Contact/update')}>" method="post" class="form-horizontal form-validata">
		<div class="form-group">
			<label class="col-md-1 control-label">所属城市</label>
			<div class="col-md-4">
				<select name="cityID" id="cityID" class="form-control" data-rule-required="true">
					<option value="">==请选择==</option>
					<volist name="city" id="vo">
					<option value='<{$vo['id']}>'><{$vo['name']}></option>
					</volist>
				</select>
			</div>
		</div>
		<div class="form-group">
			<label class="col-md-1 control-label">联系人</label>
			<div class="col-md-4">
				<input type="text"
                class="form-control"
				name="name"
				id="name"
				value="<{$list['name']}>" 
				data-rule-required="true"
				/>
			</div>
		</div>
		<div class="form-group">
			<label class="col-md-1 control-label">电话</label>
			<div class="col-md-4">
				<input type="text"
                class="form-control"
				name="tel"
				id="tel"
				value="<{$list['tel']}>" 
				data-rule-required="true"
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label">邮箱</label>
			<div class="col-md-4">
				<input type="text"
                class="form-control"
				name="email"
				id="email"
				value="<{$list['email']}>" 
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label">QQ</label>
			<div class="col-md-4">
				<input type="text"
                class="form-control"
				name="qq"
				id="qq"
				value="<{$list['qq']}>" 
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label">地址</label>
			<div class="col-md-4">
				<input type="text"
                class="form-control"
				class="input-small"
				name="address"
				id="address"
				value="<{$list['address']}>" 
				/>
			</div>
		</div>
			
		<div class="form-group">
			<div class="col-md-11 col-sm-offset-1">
				<button type="submit" class="btn btn-info">编辑</button>
			</div>
		</div>
		<input type="hidden" name="id" value="<{$list['id']}>" />
	</form>
	
<script type="text/javascript">
$("#cityID").val("<{$list['cityID']}>");
</script>



<input type="hidden" id="menu_action" value="phone" />
